using System;
namespace fuzzyKittenVNC
{
	public class Logger
	{
		private Logger (){}
		
		public static LEVEL minLevel = LEVEL.KEYS;
		public enum LEVEL {
			DEBUG,
			KEYS,
			INFO,
			WARNING,
			ALERT,
			ERROR
		}
		public static void log(string msg) {
			Logger.log(msg,LEVEL.INFO);
		}
		public static void log(string msg,LEVEL lvl) {
			if(lvl >= Logger.minLevel) {
				if(lvl == Logger.LEVEL.ERROR)
					Console.Error.WriteLine("{0}",msg);
				else
					Console.WriteLine("{0}",msg);
			}
		}
	}
}

